include_directories (${CMAKE_SOURCE_DIR}/src) 

remove_definitions(-DHAVE_PTHREADS)

add_executable(otemplate otemplate.c parser.c tags.c variables.c list.c functions.c tag_builtins.c load.c
							../../src/onion/log.c ../../src/onion/block.c ../../src/onion/codecs.c ../../src/onion/dict.c)


target_link_libraries(otemplate dl)

install(TARGETS otemplate DESTINATION bin)

add_subdirectory(templatetags)
